using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
namespace eTMS.Services{
	/********************************BEGIN DanTocService****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:27/10/2011 56:03:12</para>
	/// <para>Class Name: DanTocService</para>
	/// <para>Description: </para>
	///</summary>

	
	public partial class DanTocService : IDanTocService{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: DanToc_ID</para>
		/// <para>Output: DanTocEntity</para>
		///</summary>
		public DanTocEntity SelectOne(int DanToc_ID){
			DanTocDAO dao = new DanTocDAO();
			return dao.SelectOne(DanToc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOneByMaDanToc</para>
		/// <para>Input: MaDanToc</para>
		/// <para>Output: DanTocEntity</para>
		///</summary>
		public DanTocEntity SelectOneByMaDanToc(string MaDanToc){
			DanTocDAO dao = new DanTocDAO();
			return dao.SelectOneByMaDanToc(MaDanToc);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of DanTocEntity</para>
		///</summary>
		public List<DanTocEntity> SelectAll(){
			DanTocDAO dao = new DanTocDAO();
			return dao.SelectAll();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			DanTocDAO dao = new DanTocDAO();
			return dao.SelectAllDS();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of DanTocEntity</para>
		///</summary>
		public List<DanTocEntity> SelectAllFilter(string strFilter){
			DanTocDAO dao = new DanTocDAO();
			return dao.SelectAllFilter(strFilter);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			DanTocDAO dao = new DanTocDAO();
			return dao.SelectAllDSFilter(strFilter);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: DanTocEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(DanTocEntity o){
			DanTocDAO dao = new DanTocDAO();
			return dao.Save(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: DanTocEntity</para>
		/// <para>Output: DanTocEntity</para>
		///</summary>
		public DanTocEntity SaveRet(DanTocEntity o){
			DanTocDAO dao = new DanTocDAO();
			dao.Save(o);
			return o;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of DanTocEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<DanTocEntity> list){
			DanTocDAO dao = new DanTocDAO();
			dao.SaveList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveListRet</para>
		/// <para>Input: List of DanTocEntity</para>
		/// <para>Output: List of DanTocEntity</para>
		///</summary>
		public List<DanTocEntity> SaveListRet(List<DanTocEntity> list){
			this.SaveList(list);
			return list;
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Update</para>
		/// <para>Input: DanTocEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(DanTocEntity o){
			DanTocDAO dao = new DanTocDAO();
			return dao.Update(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of DanTocEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<DanTocEntity> list){
			DanTocDAO dao = new DanTocDAO();
			dao.UpdateList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateMaDanToc</para>
		/// <para>Input: NewMaDanToc,DanToc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateMaDanToc(string NewMaDanToc,int DanToc_ID){
			DanTocDAO dao = new DanTocDAO();
			return dao.UpdateMaDanToc(NewMaDanToc,DanToc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateTenDanToc</para>
		/// <para>Input: NewTenDanToc,DanToc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateTenDanToc(string NewTenDanToc,int DanToc_ID){
			DanTocDAO dao = new DanTocDAO();
			return dao.UpdateTenDanToc(NewTenDanToc,DanToc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateMoTaDanToc</para>
		/// <para>Input: NewMoTaDanToc,DanToc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateMoTaDanToc(string NewMoTaDanToc,int DanToc_ID){
			DanTocDAO dao = new DanTocDAO();
			return dao.UpdateMoTaDanToc(NewMoTaDanToc,DanToc_ID);
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Delete</para>
		/// <para>Input: DanTocEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(DanTocEntity o){
			DanTocDAO dao = new DanTocDAO();
			return dao.Delete(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: DanToc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(int DanToc_ID){
			DanTocDAO dao = new DanTocDAO();
			return dao.DeleteByID(DanToc_ID);
		}
		#endregion

		#region Select,delete by DanToc_ID functions
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END DanTocWebServiceBase*****************************************/
	/*****************************************************************************************************/
}

